package com.flyduck.vueshop.order.feign;

import com.flyduck.vueshop.common.core.lang.Result;
import com.flyduck.vueshop.order.fallback.RemoteOrderFallback;
import com.flyduck.vueshop.order.vo.RemoteOrderRespVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <p>
 * RemoteOrderFeignClient
 * </p>
 *
 * @author flyduck
 * @since 2024-07-23
 */
@FeignClient(name = "vueshop-service-order",contextId = "remoteOrderFeignClient",fallback = RemoteOrderFallback.class)
public interface RemoteOrderFeignClient {
    @GetMapping("/order/remote/order/getOrderById/{id}")
    Result<RemoteOrderRespVO> getOrderById(@PathVariable("id") Long id);
}
